<?php

deleteUebung($_POST['id']);

function deleteUebung($id){
	include("db.php");
	$sqlDeleteLauf = "DELETE FROM t_lauf WHERE lau_uebung=".$id;
	$sqlDelete = "DELETE FROM t_uebung WHERE ueb_id=".$id;
	$db->query($sqlDeleteLauf);
	$db->query($sqlDelete);
}
?>